<?php
// 写入cookie
$name = "username";
$value = "tom";
$expire = mktime(10,10,0,4,1,2021);
$path = "/";
setcookie($name, $value, $expire, $path);
?>